﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RK.Model.BPW
{
    public class ErrResult
    {
        /// <summary>
        /// 
        /// </summary>
        public Result Result { get; set; }
    }
    //如果好用，请收藏地址，帮忙分享。
    public class ErrorsItem
    {
        /// <summary>
        /// 
        /// </summary>
        public string FieldName { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Message { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int DIndex { get; set; }
    }

    public class ResponseStatus
    {
        /// <summary>
        /// 
        /// </summary>
        public int ErrorCode { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public bool IsSuccess { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<ErrorsItem> Errors { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<string> SuccessEntitys { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<string> SuccessMessages { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int MsgCode { get; set; }
    }

    public class Result
    {
        /// <summary>
        /// 
        /// </summary>
        public ResponseStatus ResponseStatus { get; set; }
    }
}
